package ${model.packageName}.${model.modulePackage}.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;
#foreach( $key in $importList.keySet() )
$importList.get($key)
#end

/**
* ${model.model}: ${model.comment} 数据领域模型
*@author ${model.author} ${date}
*/
@Entity
@Table(name="${model.tableName}")
public class ${model.model}Entity extends IdEntity{

    private static final long serialVersionUID = 1L;
    
#foreach($field in $fieldList)
 #if(${field.isPk}!='Y')
    /**
     * ${field.comment}
     */
     private ${field.type} ${field.field};
 #end    
#end

#foreach($field in $fieldList)
  #if(${field.isPk}!='Y')
    public ${field.type} get${field.fieldUp}() {
        return ${field.field};
    }
    
    public void set${field.fieldUp}(${field.type} ${field.field}) {
        this.${field.field} = ${field.field};
    }
 #end
#end

}